#ifndef __SPI_h
#define __SPI_h
#include "main.h"

void SPI1_SetSpeed(uint8_t SPI_BaudRatePrescaler);
	
uint8_t SPI1_ReadWriteByte(uint8_t TxData);
uint8_t SPI2_ReadWriteByte(uint8_t TxData);
uint8_t SPI3_ReadWriteByte(uint8_t TxData);

void MX_SPI1_Init(void);
void MX_SPI2_Init(void);
extern void MX_SPI3_Init(void);
extern void HAL_SPI3_Tansmit(uint8_t *buff, uint16_t len);

 
#endif  

